﻿#include "Student.h"

Student::Student(QWidget* parent)
{
}

void Student::treat()
{
	cout << "you can see me" << endl;
	qDebug() << u8"请老师吃饭~~~";
}



void Student::treat(QString food)
{
	//将QString转为char*的方法：先转成 QByteArray  ( .toUtf8()方法 )  再转char * ( .data()方法 )
	qDebug() << u8"请老师吃：" << food.toUtf8().data();
}
